import React from 'react';
import { Input, Form } from 'antd';

export default function FieldReadOnly({ form, label, initialValue, field }) {
    return (
        <Form.Item label={label}>
            {form.getFieldDecorator(field, {
                initialValue
            })(<Input style={{ padding: 0, border: 'none', background: 'none', color: '#333' }} readOnly disabled />)}
        </Form.Item>
    );
}
